package com.udaos.models.card;

import java.io.Serializable;

import org.nutz.dao.entity.annotation.ColDefine;
import org.nutz.dao.entity.annotation.ColType;
import org.nutz.dao.entity.annotation.Column;
import org.nutz.dao.entity.annotation.Comment;
import org.nutz.dao.entity.annotation.EL;
import org.nutz.dao.entity.annotation.Name;
import org.nutz.dao.entity.annotation.Prev;
import org.nutz.dao.entity.annotation.Table;


/**
 * 优惠券
 * @author Administrator
 *
 */
@Table("ud_card_template")
public class Ud_card_template implements Serializable{

	private static final long serialVersionUID = -4126029176534742162L;
	
	@Column
	@Name
	@Prev(els = {@EL("uuid()")})
	private String id; 
	
	@Column
	@Comment("所属主体")
	@ColDefine(type = ColType.VARCHAR, width = 32)
	private String company_id;
	
	@Column
    @Comment("优惠券名")
	private String coupon_name;
	
	@Column
    @Comment("优惠券logo")
	private String coupon_logo;
	
	@Column
    @Comment("券名")
	private String coupon_sub_title;
	
	@Column
    @Comment("卡券使用提醒")
	private String coupon_notice;
	
	@Column
    @Comment("使用时间类型 (0,时间段，1：时长)")
	private String coupon_date_type;
	
	@Column
    @Comment("起用时间")
	private Integer coupon_begin_timestamp;
	
	@Column
    @Comment("结束时间")
	private Integer coupon_end_timestamp;
	
	@Column
    @Comment("自领取后多少天内有效")
	private Integer coupon_fixed_term;
	
	@Column
    @Comment("金额")
	private double coupon_fee;
	
	@Column
    @Comment("简介")
	private String coupon_synopsis;
	
	@Column
    @Comment("备注")
	private String coupon_remark;
	
	@Column
    @Comment("创建时间")
	private Integer coupon_create_date;
	
	@Column
    @Comment("状态，0:未上架，1：已上架，2：已下架")
	private String state;
	
	@Column
    @Comment("库存")
	private Integer coupon_quantity;
	
	@Column
    @Comment("投放时间")
	private Integer coupon_put_date;
	
	@Column
    @Comment("失效时间")
	private Integer coupon_lose_date;
	
	@Column
    @Comment("每人限领取数量")
	private Integer max_num;
	
	@Column
    @Comment("类型（0：平台，1：微信）")
	private String coupon_type;

	public Ud_card_template() {
		super();
	}

	public String getId() {
		return id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getCompany_id() {
		return company_id;
	}
	public void setCompany_id(String company_id) {
		this.company_id = company_id;
	}

	public String getCoupon_name() {
		return coupon_name;
	}

	public void setCoupon_name(String coupon_name) {
		this.coupon_name = coupon_name;
	}

	public double getCoupon_fee() {
		return coupon_fee;
	}

	public void setCoupon_fee(double coupon_fee) {
		this.coupon_fee = coupon_fee;
	}

	public String getCoupon_synopsis() {
		return coupon_synopsis;
	}

	public void setCoupon_synopsis(String coupon_synopsis) {
		this.coupon_synopsis = coupon_synopsis;
	}

	public String getCoupon_remark() {
		return coupon_remark;
	}

	public void setCoupon_remark(String coupon_remark) {
		this.coupon_remark = coupon_remark;
	}

	public String getState() {
		return state;
	}

	public void setState(String state) {
		this.state = state;
	}

	public String getCoupon_sub_title() {
		return coupon_sub_title;
	}

	public void setCoupon_sub_title(String coupon_sub_title) {
		this.coupon_sub_title = coupon_sub_title;
	}

	public String getCoupon_notice() {
		return coupon_notice;
	}

	public void setCoupon_notice(String coupon_notice) {
		this.coupon_notice = coupon_notice;
	}

	public String getCoupon_date_type() {
		return coupon_date_type;
	}

	public void setCoupon_date_type(String coupon_date_type) {
		this.coupon_date_type = coupon_date_type;
	}

	public Integer getCoupon_begin_timestamp() {
		return coupon_begin_timestamp;
	}

	public void setCoupon_begin_timestamp(Integer coupon_begin_timestamp) {
		this.coupon_begin_timestamp = coupon_begin_timestamp;
	}

	public Integer getCoupon_end_timestamp() {
		return coupon_end_timestamp;
	}

	public void setCoupon_end_timestamp(Integer coupon_end_timestamp) {
		this.coupon_end_timestamp = coupon_end_timestamp;
	}

	public Integer getCoupon_fixed_term() {
		return coupon_fixed_term;
	}

	public void setCoupon_fixed_term(Integer coupon_fixed_term) {
		this.coupon_fixed_term = coupon_fixed_term;
	}

	public Integer getCoupon_create_date() {
		return coupon_create_date;
	}

	public void setCoupon_create_date(Integer coupon_create_date) {
		this.coupon_create_date = coupon_create_date;
	}

	public String getCoupon_logo() {
		return coupon_logo;
	}

	public void setCoupon_logo(String coupon_logo) {
		this.coupon_logo = coupon_logo;
	}

	public Integer getCoupon_quantity() {
		return coupon_quantity;
	}

	public void setCoupon_quantity(Integer coupon_quantity) {
		this.coupon_quantity = coupon_quantity;
	}

	public Integer getCoupon_put_date() {
		return coupon_put_date;
	}

	public void setCoupon_put_date(Integer coupon_put_date) {
		this.coupon_put_date = coupon_put_date;
	}

	public Integer getCoupon_lose_date() {
		return coupon_lose_date;
	}

	public void setCoupon_lose_date(Integer coupon_lose_date) {
		this.coupon_lose_date = coupon_lose_date;
	}

	public Integer getMax_num() {
		return max_num;
	}
	public void setMax_num(Integer max_num) {
		this.max_num = max_num;
	}

	public String getCoupon_type() {
		return coupon_type;
	}

	public void setCoupon_type(String coupon_type) {
		this.coupon_type = coupon_type;
	}

	
}
